package com.example.king.ffmpegexample;

public class NativeUtil {

    // Used to load the 'native-lib' library on application startup.
    static {
        System.loadLibrary("avcodec-57");
        System.loadLibrary("avdevice-57");
        System.loadLibrary("avfilter-6");
        System.loadLibrary("avformat-57");
        System.loadLibrary("avutil-55");
        System.loadLibrary("postproc-54");
        System.loadLibrary("swresample-2");
        System.loadLibrary("swscale-4");
        System.loadLibrary("native-lib");
    }

    public NativeUtil() {
        init();
    }

    public native void init();

    public native String stringFromJNI();

    public native void decodeMedia2Yuv(String mediaFilePath, String outputFilePath, String outputAudioFilePath);

}
